﻿using Little.Soldier.SWIFT;
using Little.Soldier.SWIFT.Definition;
using System.ComponentModel;

namespace Little.Soldier.SWIFT.Messages.Category0
{
  public class MTS03 : SwiftMessage
  {
    private static SwiftMessageDefinition MessageDefinition;
    private static SwiftTagDefinition U0002;
    private static SwiftTagSubItemDefinition U0003;
    private static SwiftTagDefinition U0004;
    private static SwiftTagSubItemDefinition U0005;
    private static SwiftTagDefinition U0006;
    private static SwiftTagSubItemDefinition U0007;
    private static SwiftTagDefinition U0008;
    private static SwiftTagSubItemDefinition U000E;
    private static SwiftTagDefinition U000F;
    private static SwiftTagSubItemDefinition U0010;
    private static SwiftTagDefinition U0011;
    private static SwiftTagDefinition U0012;
    private static SwiftTagSubItemDefinition U0013;
    private static SwiftTagSubItemDefinition U0014;
    private static SwiftTagSubItemDefinition U0015;
    private static SwiftTagSubItemDefinition U0016;
    private static SwiftTagSubItemDefinition U0017;
    private static SwiftTagSubItemDefinition U0018;

    [Description("Application Identifier")]
    public MTS03.Tag101 ApplicationIdentifier_101
    {
      get
      {
        return new MTS03.Tag101((SwiftElement) this, 0, (SwiftDefinitionElement) MTS03.U0002);
      }
    }

    [Description("Application Identifier")]
    public MTS03.Tag101 Tag101_ApplicationIdentifier
    {
      get
      {
        return this.ApplicationIdentifier_101;
      }
    }

    [Description("User Authentication")]
    public Tag501 UserAuthentication_501
    {
      get
      {
        return new Tag501((SwiftElement) this, 0, (SwiftDefinitionElement) MTS03.U0004);
      }
    }

    [Description("User Authentication")]
    public Tag501 Tag501_UserAuthentication
    {
      get
      {
        return this.UserAuthentication_501;
      }
    }

    [Description("Window Size")]
    public MTS03.Tag110 WindowSize_110
    {
      get
      {
        return new MTS03.Tag110((SwiftElement) this, 0, (SwiftDefinitionElement) MTS03.U0006);
      }
    }

    [Description("Window Size")]
    public MTS03.Tag110 Tag110_WindowSize
    {
      get
      {
        return this.WindowSize_110;
      }
    }

    [Description("LT select state")]
    public Tag204 SelectState_204
    {
      get
      {
        return new Tag204((SwiftElement) this, 0, (SwiftDefinitionElement) MTS03.U0008);
      }
    }

    [Description("LT select state")]
    public Tag204 Tag204_SelectState
    {
      get
      {
        return this.SelectState_204;
      }
    }

    [Description("LT-directed queue")]
    public Tag208 LTDirectedQueue_208
    {
      get
      {
        return new Tag208((SwiftElement) this, 0, (SwiftDefinitionElement) MTS03.U000F);
      }
    }

    [Description("LT-directed queue")]
    public Tag208 Tag208_LTDirectedQueue
    {
      get
      {
        return this.LTDirectedQueue_208;
      }
    }

    [Description("Delivery subset List")]
    public Tag338 DeliverySubsetList_338
    {
      get
      {
        return new Tag338((SwiftElement) this, 0, (SwiftDefinitionElement) MTS03.U0011);
      }
    }

    [Description("Delivery subset List")]
    public Tag338 Tag338_DeliverySubsetList
    {
      get
      {
        return this.DeliverySubsetList_338;
      }
    }

    [Description("Current Session Information")]
    public Tag330 CurrentSessionInformation_330
    {
      get
      {
        return new Tag330((SwiftElement) this, 0, (SwiftDefinitionElement) MTS03.U0012);
      }
    }

    [Description("Current Session Information")]
    public Tag330 Tag330_CurrentSessionInformation
    {
      get
      {
        return this.CurrentSessionInformation_330;
      }
    }

    public MTS03()
      : base(true)
    {
    }

    public MTS03(SwiftMessage message)
      : base(message)
    {
    }

    internal override SwiftMessageDefinition MsgDefinition()
    {
      return MTS03.MessageDefinition;
    }

    protected override void InitSwiftMessageDefinition()
    {
      MTS03.MessageDefinition = new SwiftMessageDefinition("MTS03", "Select Command");
      MTS03.U0002 = new SwiftTagDefinition("ApplicationIdentifier_101", "Application Identifier");
      MTS03.U0002.TagName = "{101:";
      MTS03.U0003 = new SwiftTagSubItemDefinition("ApplicationIdentifier", "Application Identifier");
      MTS03.U0002.Elements.Add((SwiftDefinitionElement) MTS03.U0003);
      MTS03.MessageDefinition.Elements.Add((SwiftDefinitionElement) MTS03.U0002);
      MTS03.U0004 = new SwiftTagDefinition("UserAuthentication_501", "User Authentication");
      MTS03.U0004.TagName = "{501:";
      MTS03.U0005 = new SwiftTagSubItemDefinition("UserAuthentication", "User Authentication");
      MTS03.U0004.Elements.Add((SwiftDefinitionElement) MTS03.U0005);
      MTS03.MessageDefinition.Elements.Add((SwiftDefinitionElement) MTS03.U0004);
      MTS03.U0006 = new SwiftTagDefinition("WindowSize_110", "Window Size");
      MTS03.U0006.TagName = "{110:";
      MTS03.U0007 = new SwiftTagSubItemDefinition("WindowSize", "Window Size");
      MTS03.U0006.Elements.Add((SwiftDefinitionElement) MTS03.U0007);
      MTS03.MessageDefinition.Elements.Add((SwiftDefinitionElement) MTS03.U0006);
      MTS03.U0008 = new SwiftTagDefinition("SelectState_204", "LT select state");
      MTS03.U0008.TagName = "{204:";
      MTS03.U000E = new SwiftTagSubItemDefinition("SelectState", "Select State");
      MTS03.U0008.Elements.Add((SwiftDefinitionElement) MTS03.U000E);
      MTS03.MessageDefinition.Elements.Add((SwiftDefinitionElement) MTS03.U0008);
      MTS03.U000F = new SwiftTagDefinition("LTDirectedQueue_208", "LT-directed queue");
      MTS03.U000F.TagName = "{208:";
      MTS03.U0010 = new SwiftTagSubItemDefinition("LTDirectedQueue", "LT-directed queue");
      MTS03.U000F.Elements.Add((SwiftDefinitionElement) MTS03.U0010);
      MTS03.MessageDefinition.Elements.Add((SwiftDefinitionElement) MTS03.U000F);
      MTS03.U0011 = new SwiftTagDefinition("DeliverySubsetList_338", "Delivery subset List");
      MTS03.U0011.TagName = "{338:";
      MTS03.U0011.Mandatory = false;
      MTS03.MessageDefinition.Elements.Add((SwiftDefinitionElement) MTS03.U0011);
      MTS03.U0012 = new SwiftTagDefinition("CurrentSessionInformation_330", "Current Session Information");
      MTS03.U0012.TagName = "{330:";
      MTS03.U0012.Mandatory = false;
      MTS03.U0013 = new SwiftTagSubItemDefinition("SessionNumber", "Session Number");
      MTS03.U0012.Elements.Add((SwiftDefinitionElement) MTS03.U0013);
      MTS03.U0014 = new SwiftTagSubItemDefinition("ISN", "Input Sequence Number.");
      MTS03.U0012.Elements.Add((SwiftDefinitionElement) MTS03.U0014);
      MTS03.U0015 = new SwiftTagSubItemDefinition("ISNNAK", "Session information - Identifies last Input NAK of previous session.");
      MTS03.U0012.Elements.Add((SwiftDefinitionElement) MTS03.U0015);
      MTS03.U0016 = new SwiftTagSubItemDefinition("OSN", "Output Sequence Number");
      MTS03.U0012.Elements.Add((SwiftDefinitionElement) MTS03.U0016);
      MTS03.U0017 = new SwiftTagSubItemDefinition("OSNNAK", "Session information - Identifies last Output NAK of previous session.");
      MTS03.U0012.Elements.Add((SwiftDefinitionElement) MTS03.U0017);
      MTS03.U0018 = new SwiftTagSubItemDefinition("ACKReplayIndicator", "Session information - Indicates the last ACK can be replayed.");
      MTS03.U0012.Elements.Add((SwiftDefinitionElement) MTS03.U0018);
      MTS03.MessageDefinition.Elements.Add((SwiftDefinitionElement) MTS03.U0012);
    }

    public class Tag101 : SwiftTagWrapper
    {
      public string Value
      {
        get
        {
          return this.GetValue();
        }
        set
        {
          this.SetValue("101", value);
        }
      }

      internal Tag101(SwiftElement parent, int index, SwiftDefinitionElement definition)
        : base(parent, index, definition)
      {
      }
    }

    public class Tag110 : SwiftTagWrapper
    {
      public string Value
      {
        get
        {
          return this.GetValue();
        }
        set
        {
          this.SetValue("110", value);
        }
      }

      internal Tag110(SwiftElement parent, int index, SwiftDefinitionElement definition)
        : base(parent, index, definition)
      {
      }
    }
  }
}
